package com.feng.Point03;

/**
 * Created by FengBin on 2022/3/22 21:08
 */
public class TestSingletonClass {
    public static void main(String[] args) {
        //方式1
        SingletonClass01 singleton = SingletonClass01.singleton;
        //方式2
        SingletonClass02 singleton02 = SingletonClass02.factory();
        //方式3
        SingletonClass singleton03 = SingletonClass03.INSTANCE.getInstance();

    }
}
